package com.ocom.payconfig.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.payconfig.EntitySubsidyPlan;
import com.ocom.common.request.payconfig.AddSubsidyDataResquest;
import com.ocom.common.request.payconfig.SubsidyListRequest;

import java.util.List;

public interface SubsidyPlanService extends IService<EntitySubsidyPlan> {
    List<EntitySubsidyPlan> subsidyList(Long comId, SubsidyListRequest subsidyListRequest);

    List<Long> subsidyListComId(Long comId, String beginMonth);

    EntitySubsidyPlan getNewSubsidyPlan(Long comId, JSONObject jsonObject);

    Boolean newSubsidyPlan(Long comId, EntitySubsidyPlan entitySubsidyPlan);

    Boolean updateSubsidyPlan(Long comId, EntitySubsidyPlan updateSubsidyPlan);

    EntitySubsidyPlan selectStatus(Long comId, String month, Integer times);

    void updateStatus(Long comId, Integer planId);

    Boolean updateSubsidyPlans(Long comId, Integer planId);

    EntitySubsidyPlan getRemoveSubsidyPlan(Long comId, AddSubsidyDataResquest addSubsidyDataResquest);
}
